package com.bwda.dsrs.filecenter.service;


import com.bwda.dsrs.filecenter.domain.exception.BusinessServiceException;
import com.bwda.dsrs.filecenter.domain.po.terminal.TerminalPo;
import com.bwda.dsrs.filecenter.domain.condition.terminal.TerminalCondition;

import java.util.List;

/**
 * Terminal service
 *
 * @author yangjun
 */
public interface TerminalService extends BaseService<TerminalPo, TerminalCondition> {

	/**
	 * 查询终端
	 *
	 * @param condition condition
	 * @return list
	 */
	List<TerminalPo> selectTlist(TerminalCondition condition);


	/**
	 * 判断权限
	 *
	 * @param po po
	 * @return
	 * @throws BusinessServiceException business service exception
	 */
	void isJurisdiction(TerminalPo po) throws BusinessServiceException;

	/**
	 * 下个id
	 *
	 * @return next val
	 */
	Integer	getNextVal();

	/**
	 * 根据mac查询
	 *
	 * @param mac mac
	 * @return terminal po
	 */
	TerminalPo selectByMac(String  mac);

	/**
	 * 根据终端编号查询
	 *
	 * @param no no
	 * @return terminal po
	 */
	TerminalPo selectByNo(String no);
}